package com.xiongwei.chainOfResponsibility;

/**
 * @author XiongWei
 * @date 2024/2/6
 */
public abstract class Approver {

    Approver approver;
    String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    /**
     * 处理审批请求
     * @param request
     */
    public abstract void processRequest(PurchaseRequest request);
}
